package com.xiaoshuidi.cloud.module.rooms.repository;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaoshuidi.cloud.module.rooms.controller.admin.iot.vo.DeviceReaVo;
import com.xiaoshuidi.cloud.module.rooms.mapper.RoomSdiotWaringMapper;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomSdiotWaring;
import com.xiaoshuidi.cloud.module.rooms.vo.RoomSdiotWaringVo;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @BelongsProject: lease-module-rooms
 * @BelongsPackage: com.xiaoshuidi.cloud.module.rooms.repository
 * @Author: James
 * @CreateTime: 2023-05-29  16:31
 * @Description: TODO
 * @Version: 1.0
 */
@Repository
@RequiredArgsConstructor
public class IotWaringRepository extends ServiceImpl<RoomSdiotWaringMapper, RoomSdiotWaring> {
    @Autowired
    private RoomSdiotWaringMapper roomSdiotWaringMapper;
    public List<RoomSdiotWaringVo> getWaringConfig(){
        QueryWrapper<RoomSdiotWaringVo> wrapper= Wrappers.query();
        return roomSdiotWaringMapper.getWaringConfig(wrapper);
    }
}
